from django.conf.urls import patterns, include, url
from django.contrib import admin
from django.contrib.auth.views import login, logout

# enable the admin panel
admin.autodiscover()

urlpatterns = patterns('',
	# index to site
	('^$', 'wype.views.index' ),
	# admin panel
	(r'^admin/', include(admin.site.urls)),
	# login/register page
	(r'^login/', 'wype.views.login'),
	# about page
	(r'^about/', 'wype.views.about'),
	# profile page
	(r'^profile/$', 'wype.views.profile'),
	# direct output URLs to idx
	(r'^logout/$', 'wype.views.logout'), 
	# edit the profile
	(r'^profile-edit/$', 'wype.views.edit_profile'),
	# generate a new profile
	(r'^register/$', 'wype.views.register'),
	# generate a new conference
	(r'^register-conference/$', 'wype.views.register_conf'),
	# add currently logged in user to conference
	(r'^conference/(.*?)/join/$', 'wype.views.add_user_to_conference'),
	# this url is generated by whatever the user clicks from the home page;that is, it
	# fetches a selected cell and redirects as /conference/[conference]/
	(r'^conference/(.*?)/$', 'wype.views.spec_conference'),
	# url is used for generating a nametag for the conference
	(r'^nametag/(.*?)/$', 'conference.views.nametag'),
	# take in FAKE information and mark their account as paid
	(r'^payment/(.*?)/$', 'conference.views.payment'),
	# set up transportation and hotel booking
	(r'^transportation/$', 'conference.views.transportation'),
	# moderate checked in users
	(r'^moderate/(.*?)/checkedin/$', 'conference.views.moderate_checked_in'),
	# moderate checked out users
	(r'^moderate/(.*?)/checkedout/$', 'conference.views.moderate_checked_out'),
	# moderate admins
	(r'^moderate/(.*?)/admins/$', 'conference.views.moderate_admins'),
	# moderate conference users
	(r'^moderate/(.*?)/registered/$', 'conference.views.moderate_registered_users'),
	# moderate breakout groups
	(r'^moderate/(.*?)/breakout/$', 'conference.views.moderate_breakout_groups'),
	# moderate url
	(r'^moderate/(.*?)/$', 'conference.views.moderate'),
	# check in 
	(r'^checkin/(.*?)/$', 'conference.views.checkin'),
	# check out
	(r'^checkout/(.*?)/$', 'conference.views.checkout'),
	# download the itinerary
	(r'^itinerary/(.*?)/$', 'conference.views.get_itinerary'),
)
